package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;


/**
 * 常数类型对象 ConstantType
 *
 * @author ruoyi
 * @date 2023-07-04
 */


@TableName("ConstantType")
@ApiModel(value = "ConstantType对象", description = "常数类型")
public class ConstantType implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    @ApiModelProperty("id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long Id;

    /**
     * 常数类别编码
     */
    @Excel(name = "常数类别编码")
    @ApiModelProperty("常数类别编码")
    @TableField("ConstantTypeCode")
    private String ConstantTypeCode;

    /**
     * 常数类别名称
     */
    @Excel(name = "常数类别名称")
    @ApiModelProperty("常数类别名称")
    @TableField("ConstantTypeName")
    private String ConstantTypeName;

    /**
     * 删除标记
     */
    @ApiModelProperty("删除标记")
    @TableField("DelMark")
    private Long DelMark;

    @JsonProperty("Id")
    public Long getId() {
        return Id;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    @JsonProperty("ConstantTypeCode")
    public String getConstantTypeCode() {
        return ConstantTypeCode;
    }

    public void setConstantTypeCode(String ConstantTypeCode) {
        this.ConstantTypeCode = ConstantTypeCode;
    }

    @JsonProperty("ConstantTypeName")
    public String getConstantTypeName() {
        return ConstantTypeName;
    }

    public void setConstantTypeName(String ConstantTypeName) {
        this.ConstantTypeName = ConstantTypeName;
    }

    @JsonProperty("DelMark")
    public Long getDelMark() {
        return DelMark;
    }

    public void setDelMark(Long DelMark) {
        this.DelMark = DelMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("Id", getId())
                .append("ConstantTypeCode", getConstantTypeCode())
                .append("ConstantTypeName", getConstantTypeName())
                .append("DelMark", getDelMark())
                .toString();
    }
}

